package org.monkey.common.constant.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import lombok.Data;

@Data
@ApiModel
public class DbConfig {
  @NotBlank
  @ApiModelProperty(name = "datasourceUrl",value = "数据源url 目前仅支持mysql",example = "jdbc:mysql://124.220.38.75:3306/monkey?serverTimezone=Asia/Shanghai")
  private String datasourceUrl;
  @NotBlank
  @ApiModelProperty(name = "driver",value = "数据源驱动 目前仅支持mysql",example = "com.mysql.cj.jdbc.Driver")
  private String driver;
  @NotBlank
  @ApiModelProperty(name = "username",value = "数据库用户",example = "root")
  private String username;
  @NotBlank
  @ApiModelProperty(name = "password",value = "数据库密码")
  private String password;
}
